maintenance mode switch coffescript turbolinks fix

jamesperet 9 years ago
parent
commit
b16674b906
2 changed files with 11 additions and 11 deletions
  1. 6 2
      app/assets/javascripts/admin_panel.js.coffee
  2. 5 9
      readme.md

+ 6 - 2
app/assets/javascripts/admin_panel.js.coffee

@@ -2,5 +2,9 @@
2 2
 # All this logic will automatically be available in application.js.
3 3
 # You can use CoffeeScript in this file: http://coffeescript.org/
4 4
 
5
-jQuery ->
6
-	$(".bootstrap_switch").bootstrapSwitch('size', 'large');
5
+
6
+attachHandler = ->
7
+	$(".bootstrap_switch").bootstrapSwitch('size', 'large');
8
+		
9
+$(document).ready attachHandler
10
+$(document).on "page:load", attachHandler

+ 5 - 9
readme.md

@@ -9,18 +9,21 @@ A template for creating rails websites that includes the following:
9 9
 * SummerNote editor
10 10
 * Image upload/File System
11 11
 * Translation (pt-BR, EN)
12
+* Contact System
13
+- Maintaince Mode
12 14
 
13 15
 Other features are still under development:
14 16
 
15
-* Contact System
16 17
 * Email System (PaperClip + MailChimp + Mandrill)
18
+- Tests
19
+
17 20
 * Search System
18 21
 * Wiki/Codex
19 22
 - Portfolio
20 23
 - Store
21 24
 - Inventory
22 25
 - Module Controller
23
-- Maintaince Mode
26
+
24 27
 
25 28
 ## Todo's
26 29
 
@@ -38,10 +41,3 @@ Other features are still under development:
38 41
 - [GoldTone](http://goldtone.com) (Under Development)
39 42
 - [benjaminperet](http://benjaminperet.com) (Under Development)
40 43
 - [High Effects](http://higheffects.com.br) (Upgrade/Rewrite)
41
-
42
-## Configurations
43
-
44
-* Maintaince Mode (Boolean)
45
-* Maintance Mode Message
46
-
47
-* Modules